package com.fallsvc.product.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther falls_vc
 * description:
 * @date 2025/6/10  21:20
 */
//@RefreshScope nacos服务配置 获取实时更新
@RefreshScope
@RestController
public class NacosController {
    @Value("${nacos.config}")
    private String config;

    @RequestMapping("/getConfig")
    public String getConfig() {
        return "从nacos中获得的config："+config;
    }
}
